﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FM.Common;
using FM.Events;
using FM.Services;
using FM.录音.Models;
using FM.接口;
using Microsoft.Practices.Prism.PubSubEvents;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;

namespace FM.录音.Services
{
    public class 授权服务 : 启动基类
    {
        public 授权服务(IUnityContainer 人事部cs, IEventAggregator 新闻部cs, IRegionManager 行政部cs) : base(人事部cs, 新闻部cs, 行政部cs)
        {
        }


        public override void 启动()
        {
            if (Is启动) return;
            base.启动();
            新闻部.GetEvent<状态栏更新Event>().Publish(new 状态栏Data1(Enum状态栏.授权, " 已授权"));
        }
    }
}